<?php
	//1:获取用户名
	//2:连接数据库
	//3:处理编码
	@$uemail = $_REQUEST['email'] or die('email required');
	@$upwd = $_REQUEST['upwd'] or die('upwd required');
	@$upwd1 = $_REQUEST['upwd1'] or die('upwd required');
	@$phone = $_REQUEST['phone'] or die('phone required');
	@$vcode = $_REQUEST['sms'] or die('vcode required');
	require('init.php');
	$sql = "INSERT INTO yx_user VALUES(null,'$uemail','$upwd','$upwd1','$phone')";
	$result = mysqli_query($conn,$sql);
	if($result === true){
		echo "注册成功";
		header("refresh:1;url=http://127.0.0.1/yanxuan/Log_in.html");
	}else {
		echo "注册失败";
	}